<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$bar="団体管理者のリスト";
        echo '<table border=1 align=center width=700px>';
        echo '<tr><td colspan=7 align=center class=bar>'.$bar.'</td></tr>';

        echo '
            <th>ユーザー</th>
              <th>メールアドレス</th>
              <th>名前</th>
              <th>住んでいるアドレス</th>
              <th>電話番号</th>
              <th>契約の時間</th>
              <th>操作</th> 
              
        ';
        foreach($query_list_manager as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        <td>$row->id_mg</td>
                        <td >$row->email</td>
                        <td >$row->name</td>
                        <td >$row->address</td>
                        <td >$row->phone</td>
                        <td >$row->year</td>";

                $titleEditManager = '<img src ="'.base_url().'public/frontend/images/edit.gif" width=20 height=15 />';
                $titleDeleteManager = '<img src ="'.base_url().'public/frontend/images/delete.png" width=20 height=15 onclick="return checkLink();"/>';
                $edit_manager = anchor("admin/update_manager/$row->id_mg",$titleEditManager);
                $delete_manager = anchor("admin/delete_manager/$row->id_mg",$titleDeleteManager);
                echo "<td align=\"center\">$edit_manager $delete_manager</td></tr>";
            }
            $titleInsertManager = '<img src ="'.base_url().'public/frontend/images/add.jpeg" width=40 height=30 title="団体管理者の作成"/>';
            $insert_manager = anchor("admin/add_manager",$titleInsertManager);
            echo '<tr><td colspan=7 align=center>'.$insert_manager.'</td></tr>';
        echo '</table>';
?>
